package com.jc.ds.model;

/**
 * supplier_logistics_company
 * @author 
 */
public class SupplierLogisticsCompany extends BaseValueObject {
    private Long id;

    /**
     * 供应商名称
     */
    private String supplierName;

    /**
     * 供应商sn
     */
    private String supplierSn;

    /**
     * 供应商物流公司名称
     */
    private String supplierLogisticsName;

    /**
     * 商城物流公司名称
     */
    private String shopLogisticsName;

    /**
     * 商城物流公司代码
     */
    private String shopLogisticsCode;

    /**
     * 商城渠道 例如 H5 商城， 新版APP
     */
    private String shopChannel;

    private String orderStr = null;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getSupplierName() {
        return supplierName;
    }

    public void setSupplierName(String supplierName) {
        this.supplierName = supplierName;
    }

    public String getSupplierSn() {
        return supplierSn;
    }

    public void setSupplierSn(String supplierSn) {
        this.supplierSn = supplierSn;
    }

    public String getSupplierLogisticsName() {
        return supplierLogisticsName;
    }

    public void setSupplierLogisticsName(String supplierLogisticsName) {
        this.supplierLogisticsName = supplierLogisticsName;
    }

    public String getShopLogisticsName() {
        return shopLogisticsName;
    }

    public void setShopLogisticsName(String shopLogisticsName) {
        this.shopLogisticsName = shopLogisticsName;
    }

    public String getShopLogisticsCode() {
        return shopLogisticsCode;
    }

    public void setShopLogisticsCode(String shopLogisticsCode) {
        this.shopLogisticsCode = shopLogisticsCode;
    }

    public String getShopChannel() {
        return shopChannel;
    }

    public void setShopChannel(String shopChannel) {
        this.shopChannel = shopChannel;
    }

    public void orderById(boolean isAsc) {
        if(isAsc){
            if(this.orderStr == null){
                this.orderStr = "order by id asc";
            }else{
                this.orderStr = this.orderStr + ",id asc";
            }
        }else{
            if(this.orderStr == null){
                this.orderStr = "order by id desc";
            }else{
                this.orderStr = this.orderStr + ",id desc";
            }
        }
    }

    public void orderBySupplierName(boolean isAsc) {
        if(isAsc){
            if(this.orderStr == null){
                this.orderStr = "order by supplier_name asc";
            }else{
                this.orderStr = this.orderStr + ",supplier_name asc";
            }
        }else{
            if(this.orderStr == null){
                this.orderStr = "order by supplier_name desc";
            }else{
                this.orderStr = this.orderStr + ",supplier_name desc";
            }
        }
    }

    public void orderBySupplierSn(boolean isAsc) {
        if(isAsc){
            if(this.orderStr == null){
                this.orderStr = "order by supplier_sn asc";
            }else{
                this.orderStr = this.orderStr + ",supplier_sn asc";
            }
        }else{
            if(this.orderStr == null){
                this.orderStr = "order by supplier_sn desc";
            }else{
                this.orderStr = this.orderStr + ",supplier_sn desc";
            }
        }
    }

    public void orderBySupplierLogisticsName(boolean isAsc) {
        if(isAsc){
            if(this.orderStr == null){
                this.orderStr = "order by supplier_logistics_name asc";
            }else{
                this.orderStr = this.orderStr + ",supplier_logistics_name asc";
            }
        }else{
            if(this.orderStr == null){
                this.orderStr = "order by supplier_logistics_name desc";
            }else{
                this.orderStr = this.orderStr + ",supplier_logistics_name desc";
            }
        }
    }

    public void orderByShopLogisticsName(boolean isAsc) {
        if(isAsc){
            if(this.orderStr == null){
                this.orderStr = "order by shop_logistics_name asc";
            }else{
                this.orderStr = this.orderStr + ",shop_logistics_name asc";
            }
        }else{
            if(this.orderStr == null){
                this.orderStr = "order by shop_logistics_name desc";
            }else{
                this.orderStr = this.orderStr + ",shop_logistics_name desc";
            }
        }
    }

    public void orderByShopLogisticsCode(boolean isAsc) {
        if(isAsc){
            if(this.orderStr == null){
                this.orderStr = "order by shop_logistics_code asc";
            }else{
                this.orderStr = this.orderStr + ",shop_logistics_code asc";
            }
        }else{
            if(this.orderStr == null){
                this.orderStr = "order by shop_logistics_code desc";
            }else{
                this.orderStr = this.orderStr + ",shop_logistics_code desc";
            }
        }
    }

    public void orderByShopChannel(boolean isAsc) {
        if(isAsc){
            if(this.orderStr == null){
                this.orderStr = "order by shop_channel asc";
            }else{
                this.orderStr = this.orderStr + ",shop_channel asc";
            }
        }else{
            if(this.orderStr == null){
                this.orderStr = "order by shop_channel desc";
            }else{
                this.orderStr = this.orderStr + ",shop_channel desc";
            }
        }
    }
}